entry: Shorten touch selection timeout
authorMatthias Clasen <mclasen@redhat.com>
Sun, 7 Jun 2015 17:55:09 +0000 (13:55 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Mon, 8 Jun 2015 10:56:12 +0000 (06:56 -0400)
We don't want the popup to appear spontaneously, so eventually
the timeout may go away altogether. For now, shorten it to 50ms,
to avoid rewriting all the places where the timeout is set or
unset.

gtk/gtkentry.c

index baa5a66443a0b09e87189776e64a22750b9bebe0..8813486e51c2f75ee10de992af562ca7173bb269 100644 (file)
@@ -9825,7 +9825,7 @@ bubble_targets_received (GtkClipboard     *clipboard,
 }
 
 static gboolean
-gtk_entry_selection_bubble_popup_cb (gpointer user_data)
+gtk_entry_selection_bubble_popup_show (gpointer user_data)
 {
   GtkEntry *entry = user_data;
 
@@ -9864,7 +9864,7 @@ gtk_entry_selection_bubble_popup_set (GtkEntry *entry)
     g_source_remove (priv->selection_bubble_timeout_id);
 
   priv->selection_bubble_timeout_id =
-    gdk_threads_add_timeout (1000, gtk_entry_selection_bubble_popup_cb, entry);
+    gdk_threads_add_timeout (50, gtk_entry_selection_bubble_popup_show, entry);
   g_source_set_name_by_id (priv->selection_bubble_timeout_id, "[gtk+] gtk_entry_selection_bubble_popup_cb");
 }